package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {

    PRICE_CAN_OT_BE_NULL(411, "价格不能为空qqq！"),
    CATEGORY_NOT_FOND(204,"未找到相应的分类信息"),
    DATA_TRANSFER_ERROR(500,"数据转换异常"),
    BRAND_NOT_FOUND(204,"未找到相应的品牌信息"),
    INSERT_OPERATION_FAIL(500,"数据保存失败"),
    INVALID_FILE_TYPE(500,"文件类型不匹配"),
    FILE_UPLOAD_ERROR(500,"文件上传失败"),
    UPDATE_OPERATION_FAIL(500,"数据更新失败"),
    SPEC_NOT_FOUND(204,"未找到相应的信息"),
    GOODS_NOT_FOUND(204,"未找到相应的商品"),
    INVALID_PARAM(400,"参数错误"),
    DIRECTORY_WRITER_ERROR(500,"找不到指定目录"),
    FILE_WRITER_ERROR(500,"文件保存失败"),
    SEND_MESSAGE_ERROR(500,"短信发送失败"),
    INNER_SERVICE_ERROR(500,"服务内部异常"),
    CODE_ERROR(500,"" +"验证码错误"),
    USER_NAME_OR_PASSWORD_ERROR(400,"用户名或密码错误"),
    GET_KEY_ERROR(404,"获取秘钥失败"),
    UNAUTHORIZED(401,"token无效，没有权限"),
    INVALID_ID_SECRET(400,"请求的服务id或secret不匹配"),
    SERVER_ACCESS_ERROR(400,"服务鉴权失败，token无效"),
    USER_NAME_NOT_FOUND(401,"用户名不存在"),
    CART_NOT_FOUND(204,"购物车无数据"),
    ORDER_NOT_FOUND(204,"未查询到此订单"),
    INVALID_NOTIFY_SIGN(400,"签名数据异常"),
    INVALID_NOTIFY_PARAM(500,"支付参数错误")
    ;


    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}
